package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetAdministrativeDivisionMapper;
import com.ruoyi.system.domain.HatchetAdministrativeDivision;
import com.ruoyi.system.service.IHatchetAdministrativeDivisionService;
import com.ruoyi.common.support.Convert;

/**
 * 银行所在地列 服务层实现
 * 
 * @author ruoyi
 * @date 2019-02-16
 */
@Service
public class HatchetAdministrativeDivisionServiceImpl implements IHatchetAdministrativeDivisionService 
{
	@Autowired
	private HatchetAdministrativeDivisionMapper hatchetAdministrativeDivisionMapper;

	/**
     * 查询银行所在地列信息
     * 
     * @param id 银行所在地列ID
     * @return 银行所在地列信息
     */
    @Override
	public HatchetAdministrativeDivision selectHatchetAdministrativeDivisionById(String id)
	{
	    return hatchetAdministrativeDivisionMapper.selectHatchetAdministrativeDivisionById(id);
	}
	
	/**
     * 查询银行所在地列列表
     * 
     * @param hatchetAdministrativeDivision 银行所在地列信息
     * @return 银行所在地列集合
     */
	@Override
	public List<HatchetAdministrativeDivision> selectHatchetAdministrativeDivisionList(HatchetAdministrativeDivision hatchetAdministrativeDivision)
	{
	    return hatchetAdministrativeDivisionMapper.selectHatchetAdministrativeDivisionList(hatchetAdministrativeDivision);
	}
	
    /**
     * 新增银行所在地列
     * 
     * @param hatchetAdministrativeDivision 银行所在地列信息
     * @return 结果
     */
	@Override
	public int insertHatchetAdministrativeDivision(HatchetAdministrativeDivision hatchetAdministrativeDivision)
	{
	    return hatchetAdministrativeDivisionMapper.insertHatchetAdministrativeDivision(hatchetAdministrativeDivision);
	}
	
	/**
     * 修改银行所在地列
     * 
     * @param hatchetAdministrativeDivision 银行所在地列信息
     * @return 结果
     */
	@Override
	public int updateHatchetAdministrativeDivision(HatchetAdministrativeDivision hatchetAdministrativeDivision)
	{
	    return hatchetAdministrativeDivisionMapper.updateHatchetAdministrativeDivision(hatchetAdministrativeDivision);
	}

	/**
     * 删除银行所在地列对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetAdministrativeDivisionByIds(String ids)
	{
		return hatchetAdministrativeDivisionMapper.deleteHatchetAdministrativeDivisionByIds(Convert.toStrArray(ids));
	}

}
